/*
 * wwan.h - 远程通信模块功能接口头文件
 *
 * Last modified: 2022-1-5
 *        Author: Young Rong
 */

#ifndef WWAN_H_
#define WWAN_H_

#include<stdint.h>

extern char    imei[];
extern char    iccid[];
extern int     ns;
extern uint8_t sq;

typedef enum
{
    Unknown,
    Yuga,
    Quectel,
    AirM2M,
    CMCC,
}manufacturer_name_type;

typedef enum
{
    SUCCESS,
    PIN_CODE,
    GPRS_REGISTER,
    GPRS_ATTECH,
}net_status_error_type;

uint8_t wwan_is_ok();
uint8_t	wwan_is_online();
void	wwan_offline();
void	wwan_hangup();
void	wwan_shutdown();
void	wwan_proc();

#endif /* WWAN_H_ */
